#ifndef SETTINGSMANAGER_H
#define SETTINGSMANAGER_H

#include <QObject>
#include <QList>
#include <QSqlDatabase>

#include "urltask.h"

class UrlTasks;

class SettingsManager : public QObject
{
    Q_OBJECT
public:
    explicit SettingsManager(QObject *parent = 0);

    void load_urls(UrlTasks *tasks);
    void save_urls(QList<UrlTask> const &tasks);

private:
    QString m_settings_db;
    QSqlDatabase m_sdb;
};

#endif // SETTINGSMANAGER_H
